/*
 * @Author: your name
 * @Date: 2021-04-10 13:42:27
 * @LastEditTime: 2021-04-16 15:48:01
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \chronic-back-end\module\reserveMod\model.go
 */
package reserveMod

import (
	"chronic/module/userMod"

	"github.com/jinzhu/gorm"
)

type Reserve struct {
	gorm.Model
	PatientID     uint
	PatientName   string
	PatientNumber string
	PatientTel    string
	DoctorID      uint
	Doctor        userMod.User `gorm:"foreignKey:DoctorID"`
	ReserveTime   string
}

type ReserveQuota struct {
	gorm.Model
	DoctorID       uint
	Doctor         userMod.User `gorm:"foreignKey:DoctorID"`
	AnyDuration    string
	TheDurationNum int
	TheDurationMax int
}
